package org.example.user.service.impl;

import org.example.user.service.UserFeignService;
import org.springframework.stereotype.Component;

/**
 * Description: 返回默认实现
 * Author: e
 * CreateDate: 2021-05-31
 */
@Component
public class UserFeignServiceFallback implements UserFeignService {
    @Override
    public boolean register(String email, String password, String code) {
        return false;
    }

    /***
     * 判断邮箱是否被注册过；true代表已经注册过， false代表尚未注册
     *
     * @param email*/
    @Override
    public boolean isRegister(String email) {
        return false;
    }

    /***
     * 根据token查询⽤户登录邮箱接⼝
     *
     * @param token*/
    @Override
    public String info(String token) {
        return null;
    }

    /***
     * 登录接⼝，验证⽤户名密码合法性，根据⽤户名和
     * 密码⽣成token，token存⼊数据库，并写⼊cookie
     * 中
     *
     * @param email
     * @param password*/
    @Override
    public String login(String email, String password) {
        return null;
    }
}
